#pragma once

#include "DElement.h"

class DHelpTools
{
public:
	DHelpTools(void);
	~DHelpTools(void);

	static void CreateNewDatabase(const char *filename);
	static void LoadElementFromDatabase(sqlite3 **database, wxString name, DElement *element, wxString &dsc, bool origin = false);
	static void LoadElementNames(sqlite3 **database, wxArrayString *arr);
	static void DeleteElementByName(sqlite3 **database, wxString name);
	static void SaveElement(sqlite3 **database, wxString name, wxString data, wxString desc);
	static void UpdateElement(sqlite3 **database, wxString name, wxString data, wxString desc);
};

